//
//	App_devices_model.h
/*
Request Head:

POST /api/App/deviceInfo HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 269
Host: test.ainankang.com
Connection: Keep-Alive
Accept-Encoding: gzip
User-Agent: okhttp/4.2.2


Body:

Authorization=wq56wqbCrcKxwqp6w519wqV0w5t9fMKXa8KBwrJ5ZsKCwq7CoMKWwrTCqcKWa8KHw43CksKRwqrCsMKmwq_CvcOTfsOgf8K1woTClHzCjMKJwrDChsKydcKpwoLCiH_Dj8K-wrhkwp7CksKVwobCk8KtworCpsKtwrHCusKSw6DCisK1dcONfnx5aMKGwolxcg&device_id=IF-YA-HBB-19A-C44F3314ECF5-6300&app_code=ainankang

Response Head:

HTTP/1.1 200 OK
Server: nginx
Date: Fri, 20 Mar 2020 07:24:35 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin:
Access-Control-Allow-Headers: Origin, Content-Type, Cookie, X-CSRF-TOKEN, Accept, Authorization, X-XSRF-TOKEN
Access-Control-Expose-Headers: Authorization, authenticated
Access-Control-Allow-Methods: GET, POST, PATCH, PUT, OPTIONS
Access-Control-Allow-Credentials: true


Body:

{
    "error_code":0,
    "error_msg":"操作成功",
    "data":{
        "device_type":"5620e5",
        "product_id":"5620e519-15a8-11ea-b47a-00163e142e5f",
        "icon":"http:\/\/travel-red.oss-cn-hangzhou.aliyuncs.com\/0f221cd5bbe5c2d153e6bb1e84c32fab.png",
        "communication":"Bluetooth-WIFI",
        "is_virtual":1,
        "device_id":"IF-YA-HBB-19A-C44F3314ECF5-6300",
        "name":"Qqqq",
        "ui_code":"yiner-app",
        "RT_NS":0, // 检测是否尿湿
        "TEM_QUILT":1,// 检测是否 踢被温度
        "TEM_THRESHOLD":34 // 踢被提醒温度
    }
}
 */
#import <UIKit/UIKit.h>

@class App_devicesData;

@interface App_devices_model : NSObject 

@property (nonatomic, assign) NSInteger error_code;
@property (nonatomic, strong) NSArray <App_devicesData *> * data;
@property (nonatomic, copy) NSString * error_msg;

@end

@interface App_devicesData : NSObject 

@property (nonatomic, copy) NSString * product_id;
@property (nonatomic, copy) NSString * device_type;
@property (nonatomic, copy) NSString * icon;
@property (nonatomic, assign) NSInteger is_virtual;
@property (nonatomic, copy) NSString * ui_code;
@property (nonatomic, copy) NSString * device_id;
@property (nonatomic, copy) NSString * device_name; // 列表是这个
@property (nonatomic, copy) NSString *name;// 通过id查询是这个
@property (nonatomic, copy) NSString * device_mac;

@property (nonatomic, copy) NSString * communication;

//"RT_NS":0, // 检测是否尿湿
@property (nonatomic, strong) NSNumber *RT_NS;

//"TEM_QUILT":1,// 检测是否 踢被温度
@property (nonatomic, strong)NSNumber *TEM_QUILT;

//"TEM_THRESHOLD":34 // 踢被提醒温度
@property (nonatomic, strong)NSNumber *TEM_THRESHOLD;

/* lzy200513注:
 isonline
 */
@property (nonatomic, assign)NSInteger isonline;

@end
